-
Notifications
You must be signed in to change notification settings - Fork 32
✨ Add Function groups permissions management endpoints #8226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Add Function groups permissions management endpoints #8226
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #8226 +/- ##
==========================================
+ Coverage 88.06% 89.87% +1.80%
==========================================
Files 1915 1507 -408
Lines 73891 62115 -11776
Branches 1300 498 -802
==========================================
- Hits 65071 55824 -9247
+ Misses 8429 6162 -2267
+ Partials 391 129 -262
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
🧪 CI InsightsHere's what we observed from your CI run for e30c60d. ❌ Failed Jobs
✅ Passed Jobs With Interesting Signals
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds group permissions management endpoints for Functions, allowing users to get, set, and remove group access rights for specific functions. The implementation follows the existing permissions pattern used elsewhere in the codebase.
Key Changes
- Added three new REST endpoints for managing function group permissions: GET, PUT, and DELETE operations
- Modified existing permission access rights structure to support group-based permissions instead of simple boolean flags
- Enhanced the functions service and repository layers to support group permissions retrieval and management
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
test_functions_service.py |
Updated test to verify the return value of set_function_group_permissions |
_functions_service.py |
Added get_function_group_permissions function and modified set_function_group_permissions to return permissions |
_functions_repository.py |
Added get_group_permissions function and updated set_group_permissions to return access rights |
_functions_exceptions.py |
Added new exception class for group access rights not found errors |
_functions_rest_schemas.py |
Added FunctionGroupPathParams schema for group-specific path parameters |
_functions_rest.py |
Added three new REST endpoints and updated existing endpoints to use group-based access rights |
openapi.yaml |
Updated API specification to include new endpoints and modified schemas |
functions.py |
Added new schemas for group access rights and updated existing function schemas |
_functions.py |
Added API specifications for the new group permissions endpoints |
services/web/server/src/simcore_service_webserver/functions/_functions_service.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/functions/_functions_service.py
Show resolved
Hide resolved
…com:giancarloromeo/osparc-simcore into is1905/add-functions-permissions-management
odeimaiz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!!
What about POST? How do I share a function with a new group?
sanderegg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, please review my comments. there are a few open questions.
packages/models-library/src/models_library/api_schemas_webserver/functions.py
Outdated
Show resolved
Hide resolved
packages/models-library/src/models_library/api_schemas_webserver/functions.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/functions/_controller/_functions_rest.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/functions/_functions_exceptions.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/functions/_functions_service.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/functions/_functions_service.py
Show resolved
Hide resolved
Well, you have to use the |
wvangeit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @giancarloromeo
services/web/server/src/simcore_service_webserver/functions/_functions_service.py
Outdated
Show resolved
Hide resolved
matusdrobuliak66
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! some minor comments
services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml
Outdated
Show resolved
Hide resolved
|
@Mergifyio queue |
🛑 Configuration not compatible with a branch protection settingThe branch protection setting |
|
4c15e6c
into
ITISFoundation:master



What do these changes do?
This PR adds group permissions management endpoints for Functions, allowing users to get, set, and remove group access rights for specific functions. The implementation follows the existing permissions pattern used elsewhere in the codebase.
Key Changes
GET,PUT, andDELETEoperationsRelated issue/s
How to test
Dev-ops